package eventbus;

import com.google.common.eventbus.EventBus;

public class PageEventBus {
    private static final EventBus bus = new EventBus("page");

    //订阅
    public static void subscribe(Object handleInstance) {
        bus.register(handleInstance);
    }

    //发布事件
    public static void publish(Object event) {
        bus.post(event);
    }
}
